Telegram Group & Telegram Channel
Дана следующая таблица:

| OrderID | CustomerID | OrderDate | TotalAmount |
|---------|------------|------------|-------------|
| 1 | 101 | 2022-05-15 | 500 |
| 2 | 102 | 2022-06-20 | 750 |
| 3 | 103 | 2022-06-25 | 1000 |
| 4 | 101 | 2022-07-10 | 300 |
| 5 | 104 | 2022-08-05 | 900 |

Какой из следующих SQL запросов вернет CustomerID и максимальный TotalAmount среди всех заказов?

A) SELECT CustomerID, MAX(TotalAmount) FROM Orders

B) SELECT CustomerID, TotalAmount FROM Orders WHERE TotalAmount = MAX(TotalAmount)

C) SELECT CustomerID, TotalAmount FROM Orders WHERE TotalAmount = (SELECT MAX(TotalAmount) FROM Orders)

D) SELECT CustomerID, MAX(TotalAmount) FROM Orders GROUP BY CustomerID



tg-me.com/sql_for_qa/108
Create:
Last Update:

Дана следующая таблица:

| OrderID | CustomerID | OrderDate | TotalAmount |
|---------|------------|------------|-------------|
| 1 | 101 | 2022-05-15 | 500 |
| 2 | 102 | 2022-06-20 | 750 |
| 3 | 103 | 2022-06-25 | 1000 |
| 4 | 101 | 2022-07-10 | 300 |
| 5 | 104 | 2022-08-05 | 900 |

Какой из следующих SQL запросов вернет CustomerID и максимальный TotalAmount среди всех заказов?

A) SELECT CustomerID, MAX(TotalAmount) FROM Orders

B) SELECT CustomerID, TotalAmount FROM Orders WHERE TotalAmount = MAX(TotalAmount)

C) SELECT CustomerID, TotalAmount FROM Orders WHERE TotalAmount = (SELECT MAX(TotalAmount) FROM Orders)

D) SELECT CustomerID, MAX(TotalAmount) FROM Orders GROUP BY CustomerID

BY SQL для тестировщика


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/sql_for_qa/108

View MORE
Open in Telegram


SQL для тестировщика Telegram | DID YOU KNOW?

Date: |

The messaging service and social-media platform owes creditors roughly $700 million by the end of April, according to people briefed on the company’s plans and loan documents viewed by The Wall Street Journal. At the same time, Telegram Group Inc. must cover rising equipment and bandwidth expenses because of its rapid growth, despite going years without attempting to generate revenue.

Telegram Auto-Delete Messages in Any Chat

Some messages aren’t supposed to last forever. There are some Telegram groups and conversations where it’s best if messages are automatically deleted in a day or a week. Here’s how to auto-delete messages in any Telegram chat. You can enable the auto-delete feature on a per-chat basis. It works for both one-on-one conversations and group chats. Previously, you needed to use the Secret Chat feature to automatically delete messages after a set time. At the time of writing, you can choose to automatically delete messages after a day or a week. Telegram starts the timer once they are sent, not after they are read. This won’t affect the messages that were sent before enabling the feature.

SQL для тестировщика from ua


Telegram SQL для тестировщика
FROM USA